{% if entries %}
<p id='entries_search_result' class='studyViewSearchResultCount'>&nbsp;</p>
<table class='stripeMe aslTable' id='thelist'>
    <tr>
	<th class='entrySelection'>&nbsp;</th>
	<th class='questionColumn'>Question</th>
	<th class='answerColumn'>Answer</th>
	{% if contributor %}
	<th class='tagColumn'>Tags</th>
	<th class='contributorColumn'>&nbsp;</th>
	{% endif %}
    </tr>
{% for entry in entries %}
    <tr>
	<td class='entrySelection'><input type='checkbox' name='entrySelectCheckbox' value='{{entry.key}}'/></td>
	<td class='questionColumn'>{{ entry.question|safe }}</td><td class='answerColumn'>{{ entry.answer|safe }}</td>
	{% if contributor %}
	<td class='tagColumn'>
	    {% for tag in entry.tags %}
	    <span class='draggable'>{{tag|safe}}</span><br/>
	    {% endfor %}
	</td>
        <td class='contributorColumn'>
	    <span class='hideMe setKey'>{{ setKey }}</span>
	    <span class='hideMe entryKey'>{{ entry.key }}</span>
	    <img src='/images/icons/sharp/png/delete.png' alt='Delete' class='deletebtn' />
	</td>
	{% endif %}
    </tr>
{% endfor %}
</table>
<div id='floatingTagsDivOuter' class='jqmWindow'>
    <div id='floatingTagsDivHandle'>
	<div class='floatingTagsDivHandleTitle'>Drag this handle to position this window.</div>
	<div class='floatingTagsDivClose'><a href='#' class='jqmClose'><img src='/images/icons/sharp/png/delete.png' alt='Hide'/></a></div>
    </div>
    <div id='floatingTagsDivInner' class='clear'></div>
    <div class='clear jqResizeContainer'>
	<div class='jqResize'>&nbsp;</div>
    </div>
</div>
<p class='thelist-footer-links-p'><a href='#' id='importLink' class='paddedRightLink'>Import</a><a href='#' id='exportLink' class='paddedRightLink'>Export</a> (Import and Export capabilities are only intended for decks that contain simple cards, do not contain HTML, images, audio, video files.)</p>
<div class='hideMe' id='entryCount_all'>{{ entryCount }}</div>
<div id="hiddenAjax" style="display: none"></div>
<div id="addEntryDiv">
    {% if contributor %}
    {% include 'astoundlearning_app/ajax/addentry_shared.html' %}
    {% endif %}
</div>
{% else %}
<p>Search term did not match any entry.</p>
{% endif %}
